<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<title>订单</title>
<!-- Top Bar Ends -->
<!-- Container fluid Starts -->
<div class="container-fluid">
	<!-- Spacer starts -->
	<div class="spacer-xs">
		<div class="row no-gutter">
			<div class="col-md-12">
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4>订单列表</h4>
					</div>
					<div class="panel-body">
						<div class="row">
							<form class="form-horizontal" action="/order" method="get">
								<div class="col-xs-2">
									<input id="no" name="no"
										class="form-control" placeholder="搜索订单编号" type="text" value="${param.no }" />
								</div>
								<div class="col-xs-2">
									<select class="form-control chosen-select" data-placeholder="销售门店">
										<option value=""></option>
											<c:forEach items="${dept }" var="dept">
										<option value="16">${dept.deptName}</option>
										</c:forEach>
										</select>
								</div>
								<div class="col-xs-1">
									<select class="form-control chosen-select" data-placeholder="订单状态"><option
											value=""></option>
										<option value="NORMAL">未支付</option>
										<option value="ALREADY_PAID">已支付</option>
										<option value="CLOSE">交易关闭</option></select>
								</div>
								<div class="col-xs-1">
									<select id="search.haveSend_eq" name="search.haveSend_eq"
										class="form-control chosen-select" data-placeholder="配送状态"><option
											value=""></option>
										<option value="NONE">未审核</option>
										<option value="NOSEND">未配送</option>
										<option value="SEND">已配送</option></select>
								</div>
								<div class="col-xs-1">
									<select id="search.returnStatus_eq"
										name="search.returnStatus_eq"
										class="form-control chosen-select" data-placeholder="退货状态"><option
											value=""></option>
										<option value="FINISH">已退款</option></select>
								</div>
								<div class="col-xs-1">
									<select id="search.platForm_eq" name="search.platForm_eq"
										class="form-control chosen-select" data-placeholder="平台"><option
											value=""></option>
										<option value="WEB">电脑端</option>
										<option value="WAP">手机端</option></select>
								</div>
								<div class="col-xs-3">
									<button type="submit" class="btn btn-sm btn-success">
										查询 <span class="fa fa-search"></span>
									</button>
								</div>
							</form>
						</div>
						<div class="data-table">
							<table class="table table-bordered table-hover table-responsive">
								<tr>
									<td width="8%">订单编号/下单日期</td>
									<td>门店</td>
									<td>会员</td>
									<td>收货地址</td>
									<td>付款日期</td>
									<td>应付总金额</td>
									<td>实付总金额</td>
									<td>退货状态/日期</td>
									<td>消费方式</td>
									<td>订单状态</td>
									<td>配送状态</td>
									<td>购买平台</td>
									<td>备注</td>
									<td>操作</td>
								</tr>
								<c:forEach items="${order}" var="order">
								<tr>
									<td>${order.no}<br />
									<fmt:formatDate value="${order.orderTime}" pattern="yyyy-MM-dd hh:mm"/>
									</td>
									<td>${order.store}
									</td>
									<td>${order.memberId}
									</td>
									<td>${order.address}</td>
									<td><fmt:formatDate value="${order.payTime}" pattern="yyyy-MM-dd" /></td>
									<td>${order.shouldPay}</td>
									<td>${order.realPay}</td>
									<td>${order.returnStatus}<br /> ${order.returnThingTime }</td>
									<td><span class="label label-danger">${order.remark } </span></td>
									<td><span class="label label-danger">${order.orderStatus } </span></td>
									<td><span class="label label-warning">${order.haveSend} </span></td>
									<td><span class="label label-primary">${order.platForm}</span></td>
									<td></td>
									<td>
										<div class="btn-group">
											<a class="btn btn-sm btn-primary"
												href="${ctx }/order/${order.id}">查看</a> <a
												class="btn btn-sm btn-default btn-ajax btn-close-table"
												data-confirm="是否确认关闭?" data-method="PUT"
												href="/management/pnzOrders/44/update/close">关闭</a>
										</div>
									</td>
								</tr>
								</c:forEach>
							</table>
							<div>
								<ul class="pagination pull-right">
									<li><a
										href="/management/pnzOrders/searchable?page.pn=1&page.size=10"
										data-remote="true">首页</a></li>
									<li class="disabled"><a><i
											class='ace-icon fa fa-angle-double-left'></i></a></li>
									<li class="active"><a>1</a></li>
									<li><a
										href="/management/pnzOrders/searchable?page.pn=2&page.size=10"
										data-remote="true">2</a></li>
									<li><a
										href="/management/pnzOrders/searchable?page.pn=3&page.size=10"
										data-remote="true">3</a></li>
									<li><a data-remote="true"
										href="/management/pnzOrders/searchable?page.pn=2&page.size=10"><i
											class='ace-icon fa fa-angle-double-right'></i></a></li>
									<li><a
										href="/management/pnzOrders/searchable?page.pn=3&page.size=10"
										data-remote="true">尾页</a></li>
									<li><span class='label label-danger'>共24条</span></li>
									<li disabled="true"><span class='label label-danger'>第1/3页</span></li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

	</div>
	<!-- Spacer ends -->
</div>
